package com.woniu.service;

import com.woniu.entity.CreditChannel;

import java.util.List;

public interface CreditChannelService {
    List<CreditChannel> listChannel(CreditChannel creditChannel);

    int updateStatus(int id, String stat);

    /**
     * 新增渠道商
     *
     * @param creditChannel
     * @return
     */
    int addChannel(CreditChannel creditChannel);

    /**
     * 修改渠道商
     *
     * @param creditChannel
     * @return
     */
    int updateChannel(CreditChannel creditChannel);

    CreditChannel findById(int id);
}
